package com.jing.shop.mapper;

import com.jing.shop.domain.dto.*;
import com.jing.shop.domain.po.ProductAttributePO;
import com.jing.shop.domain.po.ProductShopIndulgencePO;
import com.jing.shop.domain.po.ProductShopMemberPO;
import com.jing.shop.domain.po.ProductShopStepPO;
import com.jing.shop.domain.vo.ProductShopVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductShopMapper {

    List<ProductShopVO> findShopList(ProductShopDTO productShopDTO);

    Integer addShop(ProductShopDTO productShopDTO);

    Integer updateShop(ProductShopDTO productShopDTO);

    Integer update(ProductShopDTO productShopDTO);

    void addIndulgence(ProductShopIndulgenceDTO productShopIndulgenceDTO);

    void addMember(ProductShopMemberDTO productShopMemberDTO);

    void addStep(ProductShopStepDTO productShopStepDTO);

    void addReduction(ProductShopReductionDTO productShopReductionDTO);

    void addPic(ProductShopPic productShopPic);

    void addSku(ProductSkuStockDTO productSkuStockDTO);

    List<ProductAttributePO> findAttr(Integer categoryId);
}
